package Item
{
	public class CItem_ShowTime extends CItem
	{
		public function CItem_ShowTime()
		{
			super(TYPE_SHOWTIME);
			m_sprite = new CSprite_ItemShowTime();
		}
		override public function Update(tick :Number) :void
		{
			m_nDestroyElapsedTime += tick;
			
			if (m_nDestroyElapsedTime > CItem.TIME_DESTROY_SHOWTIME - 1.0)
			{
				m_sprite.alpha = (CItem.TIME_DESTROY_SHOWTIME-m_nDestroyElapsedTime)/1;
			}
			
			if (m_nDestroyElapsedTime > CItem.TIME_DESTROY_SHOWTIME)
			{
				m_bIsDestroy = true;
			}
		}
		
	}
}